/** UVa 272 Tex Qoutes */
#include<bits/stdc++.h>
using namespace std;
int main() {
  bool q=false;
  int c;
  while((c=getchar())!=EOF) {
    if(c=='"') {printf("%s", q?"''":"``");q = !q;}
    else {putchar(c);}
  }
  return 0;
}